package com.zxl.readsms

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.text.TextUtils

class BootReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        if (TextUtils.equals(intent.action, "android.intent.action.BOOT_COMPLETED")) {
            val newIntent = Intent(context, DemoService::class.java)
            context.startService(newIntent)
        }
    }
}
